package com.op.teachingliteapp.util;

import android.content.Context;
import com.op.teachingliteapp.sender.*;
import com.op.teachingliteapp.sender.Runtime;
import com.op.teachingliteapp.sender.runnable.SendCommandRunnable;

/**
 * Created by Genji on 2015/7/28.
 */
public class CommandSendUtil {
    public  static  void  openStudentPort( Context context){


        new Thread(new SendCommandRunnable(Constants.commandPort, com.op.teachingliteapp.sender.Runtime.getIp(), context, Constants.OPENSTUDENT)).start();
    }
    public static void closeStudentPort(Context context) {
        new Thread(new SendCommandRunnable(Constants.commandPort, Runtime.getIp(), context, Constants.CLOSESTUDENT)).start();
    }
}
